From 037e90b856be5875abda510c111983f4d85a6566 Mon Sep 17 00:00:00 2001 From: Matthias Clasen Date: Wed, 28 Sep 2005 20:26:50 +0000 Subject: [PATCH] Return the attributes to make this function work as boxed copy function. 2005-09-28 Matthias Clasen * gtk/gtktexttag.c (gtk_text_attributes_ref): Return the attributes to make this function work as boxed copy function. (#317455, Gustavo Carneiro) --- ChangeLog | 4 ++++ ChangeLog.pre-2-10 | 4 ++++ gtk/gtktexttag.c | 4 ++++ 3 files changed, 12 insertions(+) diff --git a/ChangeLog b/ChangeLog index cf354ebab1..337e506098 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,5 +1,9 @@ 2005-09-28 Matthias Clasen + * gtk/gtktexttag.c (gtk_text_attributes_ref): Return the attributes + to make this function work as boxed copy function. (#317455, + Gustavo Carneiro) + * gtk/gtkclipboard.c (request_image_received_func): Don't unref NULL. (#316828, Tor Lillqvist) diff --git a/ChangeLog.pre-2-10 b/ChangeLog.pre-2-10 index cf354ebab1..337e506098 100644 --- a/ChangeLog.pre-2-10 +++ b/ChangeLog.pre-2-10 @@ -1,5 +1,9 @@ 2005-09-28 Matthias Clasen + * gtk/gtktexttag.c (gtk_text_attributes_ref): Return the attributes + to make this function work as boxed copy function. (#317455, + Gustavo Carneiro) + * gtk/gtkclipboard.c (request_image_received_func): Don't unref NULL. (#316828, Tor Lillqvist) diff --git a/gtk/gtktexttag.c b/gtk/gtktexttag.c index 99d831f433..88fc06ab64 100644 --- a/gtk/gtktexttag.c +++ b/gtk/gtktexttag.c @@ -2041,6 +2041,8 @@ gtk_text_attributes_copy_values (GtkTextAttributes *src, * @values: a #GtkTextAttributes * * Increments the reference count on @values. + * + * Returns: the #GtkTextAttributes that were passed in **/ void gtk_text_attributes_ref (GtkTextAttributes *values) @@ -2048,6 +2050,8 @@ gtk_text_attributes_ref (GtkTextAttributes *values) g_return_if_fail (values != NULL); values->refcount += 1; + + return values; } /** -- 2.30.2